package com.ktjy;

import com.ktjy.websocket.WebSocketServer;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.io.IOException;

@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class WebsocketTester {
    @Autowired
    WebSocketServer webSocketServer;

    @Test
    public void test() throws IOException {
        webSocketServer.send("服务端给客户端发一个信息：123");
    }
}
